import {actionTypes} from './index'
import {fromJS} from 'immutable'
const defaultState = fromJS({
    location: 'Home'
})

export default (state = defaultState, action)=>{
    switch (action.type) {
        case actionTypes.CHANGE_LOCATION:
            return state.set('location',action.value)
        default:
            return state
    }
}
